package com.example.birdexpress.expresscheck;


import com.example.birdexpress.demo.KdApiSearchDemo;
import com.example.birdexpress.param.ExpresParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/*
* 立即查询
* */
@Controller
public class Inquire {
    @Autowired
    KdApiSearchDemo KdApiSearchDemoObj ;

    @ResponseBody
    @RequestMapping("/express/check")
    public String subscribe(ExpresParam ExpresParam0) {
        String context = KdApiSearchDemoObj.entrance( ExpresParam0);
        if (context.isEmpty()) {
            return "请求结果为NULL";
        } else {
            return context;
        }
    }
}
